//package com.kay.myServlet;
//
//import com.kay.server.HttpProtocolUtils;
//import com.kay.server.Request;
//import com.kay.server.Response;
//import com.kay.servlet.HttpServlet;
//
//import java.io.IOException;
//
///**
// * @Description:
// * @Author: Kay
// * @CreateDate: 2021/8/3$ 11:06$
// * @UpdateUser: Kay
// * @UpdateDate: 2021/8/3$ 11:06$
// */
//public class DemoServlet extends HttpServlet {
//    @Override
//    public void doGet(Request request, Response response) throws IOException {
//        System.out.println(" ============>>> this is demo2 GET request");
//        String content = "demo2 DemoServlet GET  SUCCESS !!!";
////        try {
////            Thread.sleep(100000);
////        } catch (InterruptedException e) {
////            e.printStackTrace();
////        }
//        response.outputContent(HttpProtocolUtils.getHeader200(content.getBytes().length) + content);
//    }
//
//    @Override
//    public void doPost(Request request, Response response) throws IOException {
//        System.out.println(" ============>>> this is demo2  POST request");
//        String content = "demo2 DemoServlet POST  SUCCESS !!!";
//        response.outputContent(HttpProtocolUtils.getHeader200(content.getBytes().length) + content);
//    }
//
//    @Override
//    public void init() {
//        System.out.println(" ============>>> This is init method ");
//    }
//
//    @Override
//    public void destroy() {
//        System.out.println(" ============>>> This is destroy method ");
//    }
//}
